#!-*- encoding:utf8 -*-
from django import forms

class HostForm(forms.Form):
    ip = models.IPAddressField(unique=True)
    idc = models.CharField(max_length=20)
    name = models.CharField(max_length=50)
    setup_time =  models.DateTimeField()      #上架时间
    r_cpu_usage = models.FloatField()
    r_mem_usage = models.FloatField()
    r_load = models.FloatField()
    r_disk = models.FloatField()
    r_network = models.FloatField()
    r_uptime = models.FloatField()